package com.dyg.service.Impl;

import java.util.List;
import com.dyg.model.News;
import com.dyg.dao.NewsMapper;
import com.dyg.service.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class NewsServiceImpl implements NewsService {

	@Autowired
	private NewsMapper newsMapper;

	@Override
	public void insertNews(News news)	{
		this.newsMapper.insertNews(news);
	}

	@Override
	public void deleteNewsById(String newsId)	{
		this.newsMapper.deleteNewsById(newsId);
	}

	@Override
	public void updateNews(News news)	{
		this.newsMapper.updateNews(news);
	}

	@Override
	public News findNewsById(String newsId)	{
		return this.newsMapper.findNewsById(newsId);
	}

	@Override
	public List<News> findNewsList()	{
		return this.newsMapper.findNewsList();
	}

}
